<?php
namespace Admin\Controller;
use Think\Controller;
class BaseController extends Controller {
    public function __construct(){
        parent::__construct();

        if(!is_login()){
            $this->error('请登录','admin/public/login');
        }

    }
}